package com.pzj.dormitory.controller;


import com.pzj.dormitory.service.SystemAdminService;
import com.pzj.dormitory.vo.ResultVO;
import com.pzj.dormitory.form.RuleForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author admin
 * @since 2024-04-28
 */
@RestController
@RequestMapping("/systemAdmin")
public class SystemAdminController {

    @Autowired
    private SystemAdminService systemAdminService;


    @GetMapping("/login")
    public ResultVO login(RuleForm ruleForm){
        return systemAdminService.login(ruleForm);
    }



}

